#include<bits/stdc++.h>
using namespace std;
#define int long long

string mp = "aeiou";

signed main() {

	int t;
	cin >> t;
	for (int k = 1; k <= t; k++) {
		string s;
		cin >> s;
		unordered_map<char, int> cnt;
		for (auto i : s)
			cnt[i]++;

		int mx = -1;
		char ans;
		for (auto i : mp) {
			if (cnt[i] > mx) {
				mx = cnt[i];
				ans = i;
			}
		}
		cout << "第" << k << "组出现次数最多的元音字母是" << ans << endl;
	}
	return 0;
}
